
package com.complex.client.service.gen;

/**
 * Please modify this class to meet your needs
 * This class is not complete
 */

import java.io.File;
import java.net.MalformedURLException;
import java.net.URL;
import javax.xml.namespace.QName;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.ws.RequestWrapper;
import javax.xml.ws.ResponseWrapper;

/**
 * This class was generated by Apache CXF 2.5.1
 * 2013-09-03T12:42:52.222+03:00
 * Generated source version: 2.5.1
 * 
 */
public final class DAOWebService_DAOWebServicePort_Client {

    private static final QName SERVICE_NAME = new QName("http://gen.example.com/first", "DAOWebServerService");

    private DAOWebService_DAOWebServicePort_Client() {
    }

    public static void main(String args[]) throws java.lang.Exception {
        URL wsdlURL = DAOWebServerService.WSDL_LOCATION;
        if (args.length > 0 && args[0] != null && !"".equals(args[0])) { 
            File wsdlFile = new File(args[0]);
            try {
                if (wsdlFile.exists()) {
                    wsdlURL = wsdlFile.toURI().toURL();
                } else {
                    wsdlURL = new URL(args[0]);
                }
            } catch (MalformedURLException e) {
                e.printStackTrace();
            }
        }
      
        DAOWebServerService ss = new DAOWebServerService(wsdlURL, SERVICE_NAME);
        DAOWebService port = ss.getDAOWebServicePort();  
        
        {
        System.out.println("Invoking editAttributeMethod...");
        int _editAttributeMethod_arg0 = 0;
        java.lang.String _editAttributeMethod_arg1 = "";
        java.lang.String _editAttributeMethod_arg2 = "";
        port.editAttributeMethod(_editAttributeMethod_arg0, _editAttributeMethod_arg1, _editAttributeMethod_arg2);


        }
        {
        System.out.println("Invoking editNodeMethod...");
        int _editNodeMethod_arg0 = 0;
        java.lang.String _editNodeMethod_arg1 = "";
        port.editNodeMethod(_editNodeMethod_arg0, _editNodeMethod_arg1);


        }
        {
        System.out.println("Invoking insertAttributeMethod...");
        int _insertAttributeMethod_arg0 = 0;
        java.lang.String _insertAttributeMethod_arg1 = "";
        java.lang.String _insertAttributeMethod_arg2 = "";
        port.insertAttributeMethod(_insertAttributeMethod_arg0, _insertAttributeMethod_arg1, _insertAttributeMethod_arg2);


        }
        {
        System.out.println("Invoking deleteAttributeMethod...");
        int _deleteAttributeMethod_arg0 = 0;
        port.deleteAttributeMethod(_deleteAttributeMethod_arg0);


        }
        {
        System.out.println("Invoking insertNodeMethod...");
        int _insertNodeMethod_arg0 = 0;
        java.lang.String _insertNodeMethod_arg1 = "";
        port.insertNodeMethod(_insertNodeMethod_arg0, _insertNodeMethod_arg1);


        }
        {
        System.out.println("Invoking getNodesMethod...");
        try {
            com.complex.client.service.gen.TreeNodeList _getNodesMethod__return = port.getNodesMethod();
            System.out.println("getNodesMethod.result=" + _getNodesMethod__return);

        } catch (GetDAOBeanException_Exception e) { 
            System.out.println("Expected exception: GetDAOBeanException has occurred.");
            System.out.println(e.toString());
        }
            }
        {
        System.out.println("Invoking deleteNodeMethod...");
        java.util.List<java.lang.String> _deleteNodeMethod_arg0 = null;
        java.util.List<java.lang.String> _deleteNodeMethod_arg1 = null;
        port.deleteNodeMethod(_deleteNodeMethod_arg0, _deleteNodeMethod_arg1);


        }
        {
        System.out.println("Invoking changeParentMethod...");
        int _changeParentMethod_arg0 = 0;
        int _changeParentMethod_arg1 = 0;
        port.changeParentMethod(_changeParentMethod_arg0, _changeParentMethod_arg1);


        }

        System.exit(0);
    }

}
